<?php

namespace app\admin\Model;

use think\Model;

class PlistModel extends Model
{
    protected $name = 'plist';
    public function point(){
        return $this->hasOne('pointModel','id','pid');
    }
    public function Reason(){
        return $this->hasOne('ReasonModel','id','rid');
    }
    public function student(){
        return $this->hasOne('StudentModel','id','sid');
    }
    public function user(){
        return $this->hasOne('UserModel','id','user_id');
    }
    public function admin(){
        return $this->hasOne('UserModel','id','admin_id');
    }
}